package com.iengoo.inductionms.service;

import com.iengoo.inductionms.entity.Employee;
import com.iengoo.inductionms.model.Condition;

import java.util.List;

/**
 * @author zpym
 * @CopyRight (C) http://www.iengoo.com
 * @brief
 * @email 122162005@qq.com
 * @date 2019-03-08 21:14
 */
public interface EmployeeService {
    @Deprecated
    List<Employee> findAll();

    List<Employee> query(Condition condition);

    void create(Employee employee);

    //资料报道页面修改员工基本信息
    void update(Employee employee);

    //根据员工id删除(冻结)员工,将员工的状态改为2,修改更新时间;
    void frozenAccounts(Employee employee);

    //根据员工填写数据进行修改
    void updateInformation(Employee employee);
    //判断员工工号是否重复
    List<Employee> queryByEmployeeId(String employeeId);

    Employee findById(int id);
}
